<#macro routeitemtree routeitem>
<#if routeitem.type == 'condition' >
<tr>
    <td colspan="2">
<div class="layui-collapse" lay-filter="skillcollapse">
<div class="layui-colla-item" >
    <h2 class="layui-colla-title">${routeitem.field!''}
        <span style="margin-left:50px;"> ${routeitem.expression!''}</span>
        <#if routeitem.onbreak??><span style="margin-left:50px;"> ${routeitem.onbreak!''}</span></#if>
    </h2>
    <div class="layui-colla-content layui-show" >
        <table class="layui-table" lay-skin="line">
            <colgroup>
                <col width="5%">
                <col width="90%">
                <col>
            </colgroup>
            <tbody>
                <#if routeitem.childlist?? && routeitem.childlist?size gt 0 >
                    <#list routeitem.childlist as action>
                        <@routeitemtree routeitem = action/>
                    </#list>
                </#if>
            </tbody>
        </table>
    </div>
</div>
</div>
    </td>
</tr>
<#else>
<tr>
    <td>${routeitem.action!''}</td>
    <td>${routeitem.data!''}</td>
</tr>
</#if>
</#macro>
